cmake_minimum_required(VERSION 3.10)
project(yolov5-demo VERSION 0.0.1)

set(CMAKE_CXX_STANDARD 17)
find_package(OpenCV REQUIRED)

include_directories(${PROJECT_SOURCE_DIR}/thirdParty/include
                    ${OpenCV_INCLUDE_DIRS})

link_directories(${PROJECT_SOURCE_DIR}/thirdParty/lib)

aux_source_directory(. src_list)
add_executable(yolov5 ${src_list})

target_link_libraries(yolov5 ${OpenCV_LIBS} bsnn drmshow pthread)